def writeFile():
    fin = raw_input("Enter The Input FileName: ")
    exist = 1
    try:
        inF = open(fin, "r")        
    except IOError as e:
        exist = 0
        print "File Not Found"
    if exist == 1:
        dataIn = str(inF.readline())
        fout = raw_input("Enter The Output FileName: ")
        outF = open(fout, "w")
        outF.writelines(dataIn.swapcase())
        while dataIn:
            dataIn = inF.readline()
            outF.writelines(dataIn.swapcase())
        print "Finised..."
        outF.close()
		inF.close()